/*
 * Created by JFormDesigner on Thu Dec 26 17:46:05 ICT 2013
 */

package fashionshop.gui;

import java.awt.*;
import java.awt.event.*;
import javax.swing.*;
import javax.swing.GroupLayout;

/**
 * @author Hoan Tran
 */
public class ProductImport extends JDialog {
	public ProductImport(Frame owner) {
		super(owner);
		initComponents();
	}

	public ProductImport(Dialog owner) {
		super(owner);
		initComponents();
	}

	private void btnProductDeleteActionPerformed(ActionEvent e) {
		// TODO add your code here
	}

	private void btnOrderReloadActionPerformed(ActionEvent e) {
		// TODO add your code here
	}

	private void btnOrderDetailReloadActionPerformed(ActionEvent e) {
		// TODO add your code here
	}

	private void btnOrderSaveAllActionPerformed(ActionEvent e) {
		// TODO add your code here
	}

	private void btnOrderDetailSaveAllActionPerformed(ActionEvent e) {
		// TODO add your code here
	}

	private void btnProductAddSearchActionPerformed(ActionEvent e) {
		// TODO add your code here
	}

	private void txtProductAddQuantityKeyTyped(KeyEvent e) {
		// TODO add your code here
	}

	private void btnProductAddActionPerformed(ActionEvent e) {
		// TODO add your code here
	}

	private void initComponents() {
		// JFormDesigner - Component initialization - DO NOT MODIFY  //GEN-BEGIN:initComponents
		// Generated using JFormDesigner Evaluation license - Hoan Tran
		scrollPane1 = new JScrollPane();
		tableImportDetail = new JTable();
		btnProductDelete = new JButton();
		btnImportDetailReload = new JButton();
		btnImportDetailSaveAll = new JButton();
		label2 = new JLabel();
		txtProductAddKeyword = new JTextField();
		btnProductAddSearch = new JButton();
		label1 = new JLabel();
		txtProductAddQuantity = new JTextField();
		btnProductAdd = new JButton();
		scrollPane2 = new JScrollPane();
		tableProductImport = new JTable();

		//======== this ========
		Container contentPane = getContentPane();

		//======== scrollPane1 ========
		{
			scrollPane1.setViewportView(tableImportDetail);
		}

		//---- btnProductDelete ----
		btnProductDelete.setText("X\u00f3a s\u1ea3n ph\u1ea9m");
		btnProductDelete.addActionListener(new ActionListener() {
			@Override
			public void actionPerformed(ActionEvent e) {
				btnProductDeleteActionPerformed(e);
			}
		});

		//---- btnImportDetailReload ----
		btnImportDetailReload.setText("T\u1ea3i l\u1ea1i d\u1eef li\u1ec7u");
		btnImportDetailReload.addActionListener(new ActionListener() {
			@Override
			public void actionPerformed(ActionEvent e) {
				btnOrderReloadActionPerformed(e);
				btnOrderDetailReloadActionPerformed(e);
			}
		});

		//---- btnImportDetailSaveAll ----
		btnImportDetailSaveAll.setText("L\u01b0u d\u1eef li\u1ec7u");
		btnImportDetailSaveAll.addActionListener(new ActionListener() {
			@Override
			public void actionPerformed(ActionEvent e) {
				btnOrderSaveAllActionPerformed(e);
				btnOrderDetailSaveAllActionPerformed(e);
			}
		});

		//---- label2 ----
		label2.setText("Tu khoa");

		//---- btnProductAddSearch ----
		btnProductAddSearch.setText("Tim kiem");
		btnProductAddSearch.addActionListener(new ActionListener() {
			@Override
			public void actionPerformed(ActionEvent e) {
				btnProductAddSearchActionPerformed(e);
			}
		});

		//---- label1 ----
		label1.setText("S\u1ed1 l\u01b0\u01a1ng");

		//---- txtProductAddQuantity ----
		txtProductAddQuantity.setText("1");
		txtProductAddQuantity.addKeyListener(new KeyAdapter() {
			@Override
			public void keyTyped(KeyEvent e) {
				txtProductAddQuantityKeyTyped(e);
			}
		});

		//---- btnProductAdd ----
		btnProductAdd.setText("Th\u00eam");
		btnProductAdd.addActionListener(new ActionListener() {
			@Override
			public void actionPerformed(ActionEvent e) {
				btnProductAddActionPerformed(e);
				btnProductAddActionPerformed(e);
			}
		});

		//======== scrollPane2 ========
		{
			scrollPane2.setViewportView(tableProductImport);
		}

		GroupLayout contentPaneLayout = new GroupLayout(contentPane);
		contentPane.setLayout(contentPaneLayout);
		contentPaneLayout.setHorizontalGroup(
			contentPaneLayout.createParallelGroup()
				.addGroup(contentPaneLayout.createSequentialGroup()
					.addContainerGap()
					.addComponent(scrollPane1))
				.addGroup(contentPaneLayout.createSequentialGroup()
					.addGroup(contentPaneLayout.createParallelGroup()
						.addGroup(contentPaneLayout.createSequentialGroup()
							.addGap(103, 103, 103)
							.addComponent(scrollPane2, GroupLayout.PREFERRED_SIZE, 513, GroupLayout.PREFERRED_SIZE))
						.addGroup(contentPaneLayout.createSequentialGroup()
							.addGap(229, 229, 229)
							.addComponent(btnProductDelete)
							.addGap(11, 11, 11)
							.addComponent(btnImportDetailReload)
							.addGap(6, 6, 6)
							.addComponent(btnImportDetailSaveAll))
						.addGroup(contentPaneLayout.createSequentialGroup()
							.addGap(91, 91, 91)
							.addComponent(label2, GroupLayout.PREFERRED_SIZE, 137, GroupLayout.PREFERRED_SIZE)
							.addGap(53, 53, 53)
							.addComponent(txtProductAddKeyword, GroupLayout.PREFERRED_SIZE, 195, GroupLayout.PREFERRED_SIZE)
							.addGap(29, 29, 29)
							.addComponent(btnProductAddSearch)))
					.addGap(168, 168, Short.MAX_VALUE))
				.addGroup(contentPaneLayout.createSequentialGroup()
					.addGap(204, 204, 204)
					.addComponent(label1, GroupLayout.PREFERRED_SIZE, 117, GroupLayout.PREFERRED_SIZE)
					.addGap(18, 18, 18)
					.addComponent(txtProductAddQuantity, GroupLayout.PREFERRED_SIZE, 102, GroupLayout.PREFERRED_SIZE)
					.addGap(18, 18, 18)
					.addComponent(btnProductAdd)
					.addGap(0, 0, Short.MAX_VALUE))
		);
		contentPaneLayout.setVerticalGroup(
			contentPaneLayout.createParallelGroup()
				.addGroup(contentPaneLayout.createSequentialGroup()
					.addContainerGap()
					.addComponent(scrollPane1, GroupLayout.PREFERRED_SIZE, 222, GroupLayout.PREFERRED_SIZE)
					.addPreferredGap(LayoutStyle.ComponentPlacement.UNRELATED)
					.addGroup(contentPaneLayout.createParallelGroup()
						.addComponent(btnProductDelete)
						.addComponent(btnImportDetailReload)
						.addComponent(btnImportDetailSaveAll))
					.addGap(35, 35, 35)
					.addGroup(contentPaneLayout.createParallelGroup()
						.addGroup(contentPaneLayout.createSequentialGroup()
							.addGap(3, 3, 3)
							.addComponent(label2))
						.addComponent(txtProductAddKeyword, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)
						.addComponent(btnProductAddSearch))
					.addGap(52, 52, 52)
					.addComponent(scrollPane2, GroupLayout.PREFERRED_SIZE, 119, GroupLayout.PREFERRED_SIZE)
					.addGap(45, 45, 45)
					.addGroup(contentPaneLayout.createParallelGroup()
						.addGroup(contentPaneLayout.createSequentialGroup()
							.addGap(3, 3, 3)
							.addComponent(label1))
						.addComponent(txtProductAddQuantity, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)
						.addComponent(btnProductAdd))
					.addContainerGap(165, Short.MAX_VALUE))
		);
		pack();
		setLocationRelativeTo(getOwner());
		// JFormDesigner - End of component initialization  //GEN-END:initComponents
	}

	// JFormDesigner - Variables declaration - DO NOT MODIFY  //GEN-BEGIN:variables
	// Generated using JFormDesigner Evaluation license - Hoan Tran
	private JScrollPane scrollPane1;
	private JTable tableImportDetail;
	private JButton btnProductDelete;
	private JButton btnImportDetailReload;
	private JButton btnImportDetailSaveAll;
	private JLabel label2;
	private JTextField txtProductAddKeyword;
	private JButton btnProductAddSearch;
	private JLabel label1;
	private JTextField txtProductAddQuantity;
	private JButton btnProductAdd;
	private JScrollPane scrollPane2;
	private JTable tableProductImport;
	// JFormDesigner - End of variables declaration  //GEN-END:variables
}
